package cn.edu.sdjzu.xg.kcsj.domain.authority;

import lombok.*;

import java.io.Serializable;

@ToString
@Setter
@Getter
@NoArgsConstructor
public class Resource implements Comparable<Resource>, Serializable {
    private Integer id;
    private String no;
    private String description;
    private String url;



    public Resource(Integer id, String description,String url, String no) {
        this.id = id;
        this.description = description;
        this.url = url;
        this.no = no;
    }

    @Override
    public int compareTo(Resource o) {
        // TODO Auto-generated method stub
        return this.id - o.id;
    }
}
